Mehmet Emre Doğan
Forming YBus on MATLAB for a 4 Bus Distrubution Network
Introduction
The YBus of the system below will be formed on MATLAB. Then the power injections at each bus will be calculated.

Matlab Code
code.mlx
code.mlx